cmake_minimum_required(VERSION 3.5.1)


add_subdirectory( lattice )
add_subdirectory( navi )
add_subdirectory( public_road )
add_subdirectory( rtk )


add_library( planner  planner.h )
target_link_libraries( planner 
cyber_file
cyber_common_module
cyber::common
common_proto
common
common::util
common::factory
common::status
planning::frame
planning::reference_line_info
planning_proto
scenario
scenario_manager
)


add_library( planner_dispatcher  navi_planner_dispatcher.cc
                                 on_lane_planner_dispatcher.cc
                                 planner_dispatcher.cc)

target_link_libraries( planner_dispatcher

cyber::common
common::status
common::util

lattice_planner
navi_planner
public_road_planner
rtk_planner
planning_proto
)


install(TARGETS planner
                 planner_dispatcher
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )